import { PrismaClient } from "@prisma/client";
import { ROLE } from "./enum";

export const prisma = new PrismaClient();

(async function () {
    if(await prisma.user.count() == 0){
        const u = await prisma.user.create({data:{login:"admin", password: "12345", role: ROLE.ADMIN}});
    }
})()